package com.hera.process.config.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hera.base.util.FiltroDTO;
import com.hera.process.config.dao.AddTableDetailDao;
import com.hera.process.config.service.AddTableDetailService;
import com.hera.process.external.domain.AddTableDetail;

 @Service("addtabledetailservice")
public class AddTableDetailServiceImpl implements AddTableDetailService{

	 static final Logger logger = Logger.getLogger(CalendarServiceImpl.class);
	 
	 @Autowired
	 private AddTableDetailDao addtabledetaildao;
	 
	@Override
	public AddTableDetail findById(String id) {
		
		return addtabledetaildao.findOne(id);
	}

	@Override
	public void update(AddTableDetail entity) {
		
		addtabledetaildao.save(entity);
	}

	@Override
	public void save(AddTableDetail entity) {
		
		addtabledetaildao.save(entity);
	}

	@Override
	public void delete(AddTableDetail entity) {
		
		addtabledetaildao.delete(entity);
	}

	@Override
	public List<AddTableDetail> findAll() {
		
		return addtabledetaildao.findAll();
	}

	@Override
	public List<AddTableDetail> findAll(FiltroDTO filtroDTO) {
		
		return addtabledetaildao.obtenerEntidadesPorFiltros(filtroDTO);
	}

}
